<?php
class MY_Form_validation extends CI_Form_validation
{
	
	function __construct()
	{
		parent::__construct();
	}
	/**
	 * Numeric
	 *
	 * @access	public
	 * @param	string
	 * @return	bool
	 */
	function numero($str)
	{
		return (bool) preg_match('/^[0-9]+$/', $str);

	}
	
	function numero_decimal($str)	{
		return (bool)preg_match( '/^[0-9]*\.?[0-9]+$/', $str);
	}
}
?>